﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;
using StructureMap.Pipeline;
using StructureMap.Configuration.DSL;
using StructureMap.Attributes;
using Slam.StructureMap;
using Slam.Events;
using Slam.Activation;

namespace SlamCms.SharePoint.SlamProfiles.Tags
{
	public class ContentTypeTypeProfile : ITypeProfile
	{
		#region ISLAMTypeProfile Members

		public void CreateProfile(Registry registry, string name)
		{
			registry.Profile(name, p => p.For<IItemCreator>().Use<TagContentTypeItemCreator>());
			registry.Profile(name, p => p.For<IItemDeleter>().Use<ContentTypeItemDeleter>());
			registry.Profile(name, p => p.For<IItemUpdater>().Use<ContentTypeItemUpdater>());
			registry.Profile(name, p => p.For<IDataSynchronizeTypeProcessor>().Use<SqlDataSynchronizeTypeProcessor>());
		}

		#endregion

	}
}
